<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>{{title}}</title>
</head>

<body>
    <p>{{'you have been logged!' if isLogin}}</p>
    <form method="post" action="/login/check">
        <div>
            <label>
                <span>username</span>
                <input type="text" name="username">
            </label>
            <p>{{username}}</p>
        </div>
        <div>
            <label>
                <span>password</span>
                <input type="password" name="password">
            </label>
            <p>{{password}}</p>
        </div>
        <input type="submit">
    </form>
    <a href="/auth/tumblr">Login with Tumblr</a>
    <p style="color:red;">{{error}}</p>
</body>

</html>
